<html>
<body>
Reports <code>hashMapOf</code> function or <code>HashMap</code> constructor calls that can be replaced with an <code>EnumMap</code> constructor call.
<p>Using <code>EnumMap</code> constructor makes your code simpler.</p>
<p>The quick-fix replaces the function call with the <code>EnumMap</code> constructor call.</p>
<p><b>Example:</b></p>
<pre><code>
  enum class E {
      A, B
  }

  fun getMap(): Map&lt;E, String&gt; = hashMapOf()
</code></pre>
<p>After the quick-fix is applied:</p>
<pre><code>
  enum class E {
      A, B
  }

  fun getMap(): Map&lt;E, String&gt; = EnumMap(E::class.java)
</code></pre>
<!-- tooltip end -->
</body>
</html>